package com.bml.architect.alibaba.feign;

import com.bml.architect.alibaba.fallback.AccountServiceFeignFallBack;
import com.bml.architect.alibaba.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: baiml
 * @Title: AccountFeignService
 * @ProjectName: 中台技术平台
 * @Depart 中台研发部
 * @Description:
 * @date: 2021/4/23 13:01
 */
@FeignClient(value = "my-account",path = "account",fallback = AccountServiceFeignFallBack.class)
public interface AccountFeignService {

    @RequestMapping("/findById/{userId}")
    R findUserById(@PathVariable("userId")Integer userid);
}
